﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SW.Core
{
    public class ConnectionConfig
    {
        public string Type { get; set; }
        public string Host { get; set; }
        public string Name { get; set; }
        public string User { get; set; }
        public string Password { get; set; }

        public string ConnectionString
        {
            get
            {
                return "Data Source=" + Host + ";Database=" + Name + ";User ID=" + User + ";Password=" + Password;
            }
        }

        public string DALNamespace
        {
            get
            {
                return "SW.DAL." + Type;
            }
        }
    }
}
